package cym;

import cym.service.ProviderService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerApp {

    private static final Logger LOGGER = LoggerFactory.getLogger(ConsumerApp.class);

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext(new String[] {"classpath:dubbo-consumer.xml"});
        context.start();
        ProviderService providerService = (ProviderService) context.getBean("providerService");
        LOGGER.info("TEST SERVICE");
        providerService.testService();
    }
}
